package com.lyl.serviceedu.cloudclient;

import com.lyl.commonutils.R;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

/**
 * 服务熔断
 */
@Component
public class OrderDegradeFeignClient implements OrderClient {


    @Override
    public R isBuyCourse(Long memberId, Long courseId) {
        return R.error().message("查询失败请稍后再试");
    }
}